function D = alldom(A)
%FLATTEN Flatten design point array

D = cell(size(A, 1)*size(A, 3), size(A, 2));

for i = 1:size(A, 3)
  D(((i-1)*size(A, 1)+1):i*size(A, 1), :) = A(:, :, i);
end
